package cn.itcast.nems.journal.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class JournalRenewalDiscountDTO  implements Serializable, Comparable<JournalRenewalDiscountDTO> {
    /**
     * 短训升班凭单ID
     */
    private String journalRenewalId ;
    /**
     * 优惠ID
     */
    private String discountId;
    /**
     * 优惠名称
     */
    private String discountName ;
    /**
     * 优惠类型
     */
    private String discountType ;
    /**
     * 优惠折扣
     */
    private BigDecimal discountRate ;
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount ;
    /**
     * 排序号
     */
    private Integer sort ;

    @Override
    public int compareTo( JournalRenewalDiscountDTO o) {
        return this.getSort().compareTo(o.getSort());
    }
}
